﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Manage/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	登录用户
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <fieldset>
        <legend>登录用户</legend>
        <div align="center">
            <% Html.BeginForm(); %>
                <label for="usrName">请输入用户名:</label>
                <input id="userName" name="userName" class="text100" />
                <%=Html.ValidationMessage("userName") %>
                <input type="submit" value="登录" onclick="return btn_Click()" />
            <% Html.EndForm(); %>
        </div>
    </fieldset>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="StyleAndScript" runat="server">
<script type="text/javascript">
    function link_OnFocus(obj) {
        var txt = $('#userName');
        if (txt.val() != '') {
            obj.href = '<%=Url.Action("Login") %>?userName'+txt.val();
        }
    }
    function btn_Click() {
        var txt = $('#userName');
        if (txt.val() == '') {
            txt.focus();
            alert("请输入要登录的用户名");
            return false;
        }
        return true;
    }
</script>
</asp:Content>
